package com.xh.core.util;

/*
 * @Author daiwei
 * @Description
 * @Date 2018/9/27 13:57
 **/
public class UserUtils {
    private static ThreadLocal<String> userIdThreadLocal = new ThreadLocal<String>();

    public static void setCurrentUserId(String id){
        userIdThreadLocal.set(id);
    }

    public static String getCurrentUserId(){
        return userIdThreadLocal.get();
    }
}
